package com.voltmaon.shortlink.repo;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import com.voltmaon.shortlink.jpa.ShortLink;

/**
 * @author lfj
 */
public interface ShortLinkRepo extends JpaSpecificationExecutor<ShortLink>, JpaRepository<ShortLink, Long> {

	//	@Query(value = "select fullLink from ShortLink where shortLink 'collate Chinese_PRC_CS_AS' = ?1")
	Optional<ShortLink> findByShortLink(String sl);
}
